﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using TVersiPlay.MediaBrowse.ViewModels;
using TVersiPlay.Common.Interfaces;

namespace TVersiPlay.MediaBrowse.Views
{
    /// <summary>
    /// Interaction logic for TestView.xaml
    /// </summary>
    public partial class TestView : UserControl, IView
    {
        public TestView(MediaBrowseViewModel vm)
        {
            InitializeComponent();
            this.DataContext = vm;
        }

        public bool PersistView
        {
            get { return false; }
        }

        private void ListView_SourceUpdated(object sender, DataTransferEventArgs e)
        {
           
        }

        private void ListView_DataContextChanged(object sender, DependencyPropertyChangedEventArgs e)
        {
            Console.WriteLine((sender as ListView).Items.Count.ToString());
        }
    }
}
